home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / info-service / gopher / Unix / xgopher.1.3 / Documents / OW3-xmkmf.patch / text0000.txt < prev   
Encoding:
Text File  |  1993-01-27  |  4.6 KB  |  126 lines

  1. The following modifications to the X11 configuration files were created
  2. by Greg Earle. It works like a charm.
  3.  
  4. regards,
  5. --
  6. Glenn Satchell          ups!glenn@fourx.Aus.Sun.COM  |
  7. Uniq Professional Services Pty Ltd  ACN 056 279 335  |  "The answer is no,
  8. PO Box 70, Paddington, NSW 2021, (Sydney) Australia  |  and I'll negotiate
  9. Phone: +61-2-360-7434           Fax: +61-2-331-2572  |  from there."
  10.        "Sun Accredited System Consultants"           |
  11.  
  12.  
  13. ==============================================================================
  14. ===== Note from Allan Tuchman
  15. =====
  16. ===== Mico Loretan <mico@rainbow.econ.wisc.edu> wrote to me
  17. ===== suggesting the following change to the patch below.  I
  18. ===== cannot verify it, but it may have to do with the release
  19. ===== of the compiler you are using.  From Mico Loretan:
  20. =====
  21. =====   I think one of the lines in the file OW3-xmkmf.patch should say
  22. =====                                                                 
  23. =====      args="-I$OPENWINHOME/lib/config -DUseInstalled -DXCOMM='/**/#'" 
  24. =====    and not
  25. =====      args="-I$OPENWINHOME/lib/config -DUseInstalled -DXCOMM="/**/#"
  26. =====                                                           
  27. =====   (Notice how you need a different set of quotes for the
  28. =====   argument of DXCOMM.)                                    
  29. ==============================================================================
  30.  
  31. ----- Begin Included Message -----
  32.  
  33. You can get almost anything to compile on your system by installing
  34. OpenWindows 3.0, and then applying the following patches to the files
  35. $OPENWINHOME/xmkmf, $OPENWINHOME/lib/config/sun.cf, and
  36. $OPENWINHOME/lib/config/site.def to make them actually work like they
  37. are supposed to:
  38.  
  39. (Applicable via "patch -c -p0 -d $OPENWINHOME < thispatch")
  40.  
  41. Once you have applied these patches, you can just go to the directory
  42. where your PD X11 program source is, and do "xmkmf".  Once that's done,
  43. you can pretty much type "make" and things should work and build.  Note
  44. that the patch assumes you are running 4.1.1; if not, salt the sun.cf
  45. patch below to taste.
  46.  
  47. -----------------------------  >8  Cut here  8<  ------------------------------
  48.  
  49. *** bin/xmkmf.orig    Wed Sep 18 07:02:02 1991
  50. --- bin/xmkmf    Tue Aug  6 00:39:20 1991
  51. ***************
  52. *** 30,34 ****
  53.   
  54.   elif [ -n "$OPENWINHOME" ]; then
  55. !     args="-DUseInstalled "$OPENWINHOME/lib/config
  56.   
  57.   else
  58. --- 30,34 ----
  59.   
  60.   elif [ -n "$OPENWINHOME" ]; then
  61. !     args="-I$OPENWINHOME/lib/config -DUseInstalled -DXCOMM="/**/#" "$OPENWINHOME/lib/config
  62.   
  63.   else
  64. *** lib/config/sun.cf.orig    Wed Sep 18 01:26:19 1991
  65. --- lib/config/sun.cf    Fri Dec 13 16:17:58 1991
  66. ***************
  67. *** 6,12 ****
  68.    */
  69.   #define SunOSPlatform     YES        /* set to NO if not running SunOS */
  70. ! #define OSName            SunOS 4.0.3
  71.   #define OSMajorVersion    4
  72. ! #define OSMinorVersion    0
  73.   #define HasSaberC      YES        /* for machines that have it */
  74.   #define HasNdbm          YES
  75. --- 6,12 ----
  76.    */
  77.   #define SunOSPlatform     YES        /* set to NO if not running SunOS */
  78. ! #define OSName            SunOS 4.1.1
  79.   #define OSMajorVersion    4
  80. ! #define OSMinorVersion    1
  81.   #define HasSaberC      YES        /* for machines that have it */
  82.   #define HasNdbm          YES
  83. *** lib/config/site.def.orig    Wed Sep 18 01:26:19 1991
  84. --- lib/config/site.def    Tue Aug  6 00:44:37 1991
  85. ***************
  86. *** 0 ****
  87. --- 1,7 ----
  88. + #define BinDir $(OPENWINHOME)/bin
  89. + #define LibDir $(OPENWINHOME)/lib
  90. + #define IncRoot $(OPENWINHOME)/share/include
  91. + #define InstallNonExecFile(file,dest)                    @@\
  92. + install:: file                                @@\
  93. +     $(INSTALL) -c $(INSTDATFLAGS) file dest
  94. + #define NullParameter
  95.  
  96. ----- End Included Message -----
  97.  
  98.  
  99. > From ups!fourx!ra.mcs.anl.gov!sun-managers-relay Tue Nov 24 06:20:28 1992
  100. > Date: Mon, 23 Nov 92 12:33:12 +0100
  101. > From: ups!fourx!ECN.NL!bernards (Marcel Bernards)
  102. > Subject: Using xmkmf and imake with OW3: How ?
  103. > To: sun-managers@eecs.nwu.edu
  104. > X-Envelope-To: sun-managers@eecs.nwu.edu
  105. > Content-Length: 727
  106. > X-Lines: 16
  107. > Maybe I'm doing something wrong, but we try to get some X programs to compile 
  108. > using the Imake files. ( I'm not a X11 hacker )
  109. > It generates Makefiles which are unusable.
  110. > What options do I need to supply in order to get correct makefiles which
  111. > points to teh correct library and include directories ?
  112. > I tried to suppply $OPENWINHOME to imake, but it leaves things unresolved.
  113. > Has anybody resolved these problems with imake and OW3 ?
  114. > Marcel Bernards, UNIX & Net sysadm Netherlands Energy Research Foundation ECN
  115. > (and SURFnet IC/ICP), Phone: (+31 /0)2246 4579 Fax: (+31 /0)2246 1864
  116. > E-Mail: Bernards@ECN.NL, SnailMail: P.O. Box 1, 1755 ZG Petten 
  117. > SCREAMNet : AAAAAARGHH!HUH?? : Disclaimer: "The AntiChrist is the Computer !" 
  118.  
  119.